/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PnlListDeType.java
 *
 * Created on 2 ก.พ. 2553, 17:43:23
 */

package warehouse;

/**
 *
 * @author Poko
 */
public class PnlListDetailType extends javax.swing.JPanel {

    /** Creates new form PnlListDeType */
    public PnlListDetailType() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlHeadListDeType = new javax.swing.JPanel();
        lblHeadEditDeType = new javax.swing.JLabel();
        btnDeTypeListSearch = new javax.swing.JButton();
        btnDeTypeListAdd = new javax.swing.JButton();
        btnDeTypeListDel = new javax.swing.JButton();
        btnDeTypeListEdit = new javax.swing.JButton();
        btnDeTypePrint = new javax.swing.JButton();
        pnlListDeType = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tblDeType = new javax.swing.JTable();
        lblDTCode = new javax.swing.JLabel();
        txtDTCode = new javax.swing.JTextField();
        lblTyCode = new javax.swing.JLabel();
        txtTyCode = new javax.swing.JTextField();
        lblSupCode = new javax.swing.JLabel();
        txtSupCode = new javax.swing.JTextField();

        setMaximumSize(new java.awt.Dimension(700, 500));
        setMinimumSize(new java.awt.Dimension(700, 500));
        setLayout(new java.awt.BorderLayout());

        pnlHeadListDeType.setBackground(new java.awt.Color(204, 255, 204));
        pnlHeadListDeType.setFont(new java.awt.Font("Tahoma", 0, 12));
        pnlHeadListDeType.setMaximumSize(new java.awt.Dimension(700, 80));
        pnlHeadListDeType.setMinimumSize(new java.awt.Dimension(700, 80));
        pnlHeadListDeType.setPreferredSize(new java.awt.Dimension(700, 80));

        lblHeadEditDeType.setFont(new java.awt.Font("Tahoma", 1, 16));
        lblHeadEditDeType.setText("จัดการรายละเอียดประเภท");

        btnDeTypeListSearch.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/search_30x30.gif"))); // NOI18N

        btnDeTypeListAdd.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/add_30x30.gif"))); // NOI18N

        btnDeTypeListDel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/del_30x30.gif"))); // NOI18N

        btnDeTypeListEdit.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnDeTypeListEdit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/edit1_30x30.gif"))); // NOI18N
        btnDeTypeListEdit.setMaximumSize(new java.awt.Dimension(75, 30));
        btnDeTypeListEdit.setMinimumSize(new java.awt.Dimension(75, 30));
        btnDeTypeListEdit.setPreferredSize(new java.awt.Dimension(75, 30));

        btnDeTypePrint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/print_30x30.gif"))); // NOI18N
        btnDeTypePrint.setMaximumSize(new java.awt.Dimension(40, 40));
        btnDeTypePrint.setMinimumSize(new java.awt.Dimension(40, 40));
        btnDeTypePrint.setPreferredSize(new java.awt.Dimension(40, 40));

        javax.swing.GroupLayout pnlHeadListDeTypeLayout = new javax.swing.GroupLayout(pnlHeadListDeType);
        pnlHeadListDeType.setLayout(pnlHeadListDeTypeLayout);
        pnlHeadListDeTypeLayout.setHorizontalGroup(
            pnlHeadListDeTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeadListDeTypeLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlHeadListDeTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlHeadListDeTypeLayout.createSequentialGroup()
                        .addComponent(btnDeTypeListSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnDeTypeListAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnDeTypeListDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnDeTypeListEdit, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnDeTypePrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(lblHeadEditDeType))
                .addContainerGap(440, Short.MAX_VALUE))
        );
        pnlHeadListDeTypeLayout.setVerticalGroup(
            pnlHeadListDeTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeadListDeTypeLayout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addComponent(lblHeadEditDeType)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlHeadListDeTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(btnDeTypePrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnDeTypeListEdit, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnDeTypeListSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnDeTypeListAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnDeTypeListDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        add(pnlHeadListDeType, java.awt.BorderLayout.PAGE_START);

        tblDeType.setFont(new java.awt.Font("Tahoma", 0, 12));
        tblDeType.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "รหัสรายละเอียดประเภท", "รหัสประเภทสินค้า", "รหัสผู้จำหน่าย"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane1.setViewportView(tblDeType);

        lblDTCode.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblDTCode.setText("รหัสรายละเอียดประเภท :");

        txtDTCode.setFont(new java.awt.Font("Tahoma", 0, 12));

        lblTyCode.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblTyCode.setText("รหัสประเภทสินค้า :");

        txtTyCode.setFont(new java.awt.Font("Tahoma", 0, 12));

        lblSupCode.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblSupCode.setText("รหัสผู้จำหน่าย :");

        txtSupCode.setFont(new java.awt.Font("Tahoma", 0, 12));

        javax.swing.GroupLayout pnlListDeTypeLayout = new javax.swing.GroupLayout(pnlListDeType);
        pnlListDeType.setLayout(pnlListDeTypeLayout);
        pnlListDeTypeLayout.setHorizontalGroup(
            pnlListDeTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlListDeTypeLayout.createSequentialGroup()
                .addGroup(pnlListDeTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlListDeTypeLayout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addGroup(pnlListDeTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblDTCode, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(lblSupCode, javax.swing.GroupLayout.Alignment.TRAILING))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlListDeTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtSupCode, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(pnlListDeTypeLayout.createSequentialGroup()
                                .addComponent(txtDTCode, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(lblTyCode)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(txtTyCode, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGroup(pnlListDeTypeLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 680, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pnlListDeTypeLayout.setVerticalGroup(
            pnlListDeTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlListDeTypeLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlListDeTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblDTCode, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtDTCode, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblTyCode, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtTyCode, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlListDeTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblSupCode, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtSupCode, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 246, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(95, Short.MAX_VALUE))
        );

        add(pnlListDeType, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnDeTypeListAdd;
    private javax.swing.JButton btnDeTypeListDel;
    private javax.swing.JButton btnDeTypeListEdit;
    private javax.swing.JButton btnDeTypeListSearch;
    private javax.swing.JButton btnDeTypePrint;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JLabel lblDTCode;
    private javax.swing.JLabel lblHeadEditDeType;
    private javax.swing.JLabel lblSupCode;
    private javax.swing.JLabel lblTyCode;
    private javax.swing.JPanel pnlHeadListDeType;
    private javax.swing.JPanel pnlListDeType;
    private javax.swing.JTable tblDeType;
    private javax.swing.JTextField txtDTCode;
    private javax.swing.JTextField txtSupCode;
    private javax.swing.JTextField txtTyCode;
    // End of variables declaration//GEN-END:variables

}
